
$(function(){
    var sel = $("#sharebox");
    if(sel.length==0){
        document.body.innerHTML += '<div style="z-index:99;position: absolute;top:0;left:0;width: 100%;height: 100%;background-size:100% 100%;background: url(\'image/share.png\');background-size: 100% 100%;display: none;" id="sharebox" onclick="hideShare();"></div>';
    }
});
var pointerN = 0;
function showShare(){
    var sel = $("#sharebox");
    if(sel.length==0){
        document.body.innerHTML += '<div style="z-index:99;position: absolute;top:0;left:0;width: 100%;height: 100%;background-size:100% 100%;background: url(\'image/share.png\');background-size: 100% 100%;display: none;" id="sharebox" onclick="hideShare();"></div>';
        $("#sharebox")[0].style.display = "";
    }else{
        sel[0].style.display = "";
    }
    $("#pointerup")[0].style.display = "";
    var iii=0;
    pointerN = setInterval(function(){
        $("#pointerup")[0].style.top = (2-(iii)%3)+"%";
        iii++;
    },300);
}
function hideShare(){
    $("#sharebox").hide();
    $('#pointerup').hide();
    clearInterval(pointerN);
}
